package cn.crex1.xiaomi.pojo;

/**
 * 《已经选购商品的订单》 订单中已经支付选购的商品信息。 与商品表（product表）关联。 1. 商品编号：父类编号 - 不可重复
 * ..用于查询此商品所有的规格信息。作用---<父编号>-(例：输入编号X6，显示X6所有规格手机)
 * 作用---[搜索框模糊查询后跳转页面显示关于该编号所有物品，并出现该产品精确搜索下拉选项框]..可以忽略 2.商品规格编号：同一规格商品编号 - 可重复
 * ..用于查询已经查询到的某个商品的不同款式的信息（比如查询某商品颜色...）
 * <子编号>-(例如：查询米X6红色，就显示X6红色规格的所有手机)..可以忽略 3.商品规格名称：与商品规格编号同级
 * 
 * @author 云哥
 *
 */
public class OProduct {

	private Integer order_product_id;// 订单商品ID

	private Integer order_id;// 订单ID

	private Long product_number;// 商品编号 ↑

	private String name;// 商品名称

	private String pic_img;// 展示图片

	private Integer product_spec_number;// 商品规格编号 ↑

	private String product_spec_name;// 商品规格名称 ↑

	private Double price;// 价格

	private Integer score;// 积分=商品总金额

	private Integer buy_number;// 商品总数量

	private Integer product_score;// 商品总积分=商品总数量+商品总金额

	private Double product_amount;// 商品总金额

	private Integer comment_status;// 评论状态 0=未评论，1=已评论

	public int getOrder_product_id() {
		return order_product_id;
	}

	public void setOrder_product_id(int order_product_id) {
		this.order_product_id = order_product_id;
	}

	public int getOrder_id() {
		return order_id;
	}

	public void setOrder_id(int order_id) {
		this.order_id = order_id;
	}

	public Long getProduct_number() {
		return product_number;
	}

	public void setProduct_number(Long product_number) {
		this.product_number = product_number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPic_img() {
		return pic_img;
	}

	public void setPic_img(String pic_img) {
		this.pic_img = pic_img;
	}

	public int getProduct_spec_number() {
		return product_spec_number;
	}

	public void setProduct_spec_number(int product_spec_number) {
		this.product_spec_number = product_spec_number;
	}

	public String getProduct_spec_name() {
		return product_spec_name;
	}

	public void setProduct_spec_name(String product_spec_name) {
		this.product_spec_name = product_spec_name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getBuy_number() {
		return buy_number;
	}

	public void setBuy_number(int buy_number) {
		this.buy_number = buy_number;
	}

	public int getProduct_score() {
		return product_score;
	}

	public void setProduct_score(int product_score) {
		this.product_score = product_score;
	}

	public double getProduct_amount() {
		return product_amount;
	}

	public void setProduct_amount(double product_amount) {
		this.product_amount = product_amount;
	}

	public int getComment_status() {
		return comment_status;
	}

	public void setComment_status(int comment_status) {
		this.comment_status = comment_status;
	}

	@Override
	public String toString() {
		return "OProduct [order_product_id=" + order_product_id + ", order_id=" + order_id + ", product_number=" + product_number + ", name=" + name + ", pic_img=" + pic_img + ", product_spec_number=" + product_spec_number + ", product_spec_name=" + product_spec_name + ", price=" + price + ", score=" + score + ", buy_number=" + buy_number + ", product_score=" + product_score + ", product_amount=" + product_amount + ", comment_status=" + comment_status + "]";
	}

}
